package com.work.chat.custom.server.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.work.chat.custom.server.pojo.entity.Product;
import com.work.chat.custom.server.pojo.vo.QueryProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    @Select("SELECT * FROM product ${ew.customSqlSegment}")
    IPage<QueryProductVO> selectListPage( @Param("ew") QueryWrapper queryWrapper,IPage<QueryProductVO> iPage);
}
